from DrissionPage import ChromiumPage, ChromiumOptions

# 设置浏览器的路径并且保存设置
ChromiumOptions().set_browser_path(
    r"C:\Program Files\Google\Chrome\Application\chrome.exe"
).save()

page = ChromiumPage()
page.get("http://www.baidu.com")
page.ele("#kw").input("AIAgent")
page.ele("@value=百度一下").click()
